package com.ct.boss.demo.service.impl;

import com.ct.boss.demo.dao.SysMenuMapper;
import com.ct.boss.demo.model.Menus;
import com.ct.boss.demo.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ChenTong
 * @version 1.0
 * @description 菜单业务实现
 * @date 2020/6/16 22:46
 * @modified
 **/

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private SysMenuMapper menuMapper;

    @Override
    public List<Menus> getMenus() {
        return menuMapper.selectAll();
    }
}
